package E2013;

/**
 *  弹球
 */
public class e03 {

    public static void main(String[] args) {
        int total=0;
        int height=100;
        int count = 1;
        while(total>=0){
            total = total + height;
            height = height/2;

            if (count==10){
                System.out.println(total+"\t"+height);
                break;
            }
            count++;
        }
    }

}
